package creational.factory.factorymethod;

/**
 * @Description: 测试
 * @Author: lxt
 * @CreateDate: 2019/11/1
 **/
public class FactoryMethodTest {


    public static void main(String[] args) {
        Factory mysql = new MySQLDialectFactory();
        String sql = mysql.getDialect().getCountRowsSql("hub", "", "hub_sys_menu");
        System.out.println(sql);

        Factory postgresql = new PostgresDialectFactory();
        String psql = postgresql.getDialect().getCountRowsSql("", "public", "DIC_INFO");
        System.out.println(psql);
    }
}
